<extend name="common/base" />
<block name="resource">
    <link href="__PUBLIC__/Home/ui3/css/login.css" rel="stylesheet">
</block>
<block name="accountJS">
    <script src="__PUBLIC__/Home/ui3/js/web/user/login.js" type="text/javascript"></script>
    
</block>
<block name="header">
    <include file="loginheader" />
</block>
<block name="content">
    <div class="main">
        <div class="login-box">
            <div class="login-title">
                <span>欢迎登录</span>
                <div class="toRegister">
                    <span>没有账号？</span>
                    <span class="toRegister-btn" title="立即注册">
                        <a href="{:U('user/register')}">立即注册</a>
                    </span>
                </div>
            </div>
            <div class="login-main">
                <div class="login-left">
                    <form action="{:U('user/login')}">
                        <div class="loginInputList">
                            <div class="loginInput-num">
                                <div class="loginInput-num-box">
                                    <i></i>
                                    <input class="JS-account_input" type="text" name="mobile" maxlength="11" placeholder="请输入注册手机号"/>
                                </div>
                                <p data-bind="text:viewModel.login.error.mobile"></p>
                            </div>
                            <div class="loginInput-password">
                                <div class="loginInput-password-box">
                                    <i></i>
                                    <input class="JS-account_input" type="password" name="password" maxlength="16" placeholder="请输入密码"/>
                                </div>
                                <p data-bind="text:viewModel.login.error.password"></p>
                            </div>
                        </div>
                        <input type="button" class="btn myBtn loginBtn login-submit JS-submit" value="登录" title="登录" data-bind="click:doLogin"/>
                        <div class="login-tips">
                            <label><input type="checkbox" name="auto" value="1"/>下次自动登录</label>
                            <a href="{:U('visitor/resetPwd')}">忘记密码？</a>
                        </div>
                    </form>
                </div>
                <div class="line"><span class="or">OR</span></div>
                <div class="login-right">
                    <div class="third-login">
                        <div class="third-login-title">使用第三方账号登录</div>
                        <div class="third-login-list">
                            <div class="third-login-item wb" title="新浪微博登录">
                                <a href="{$sso_code_uri.sina}">新浪微博登录</a>
                            </div>
                            <div class="third-login-item qq" title="QQ账号登录">
                                <a href="{$sso_code_uri.qq}">QQ账号登录</a>
                            </div>
                        </div>
                        <div class="third-login-item wx" title="微信账号登录">
                            <a href="https://open.weixin.qq.com/connect/qrconnect?appid=wx8c0229cea7f27b8a&redirect_uri={:urlencode(C('LOCAL_DOMAIN'))}%2FHome%2FSso%2Fcode%2Fchannel%2Fweixin&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect">微信账号登录</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="widget"></block>